﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Tanmia.Core
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    public sealed class CheckPasswordAttribute : ValidationAttribute
    {
        public string Password { get; set; }

        public override bool IsValid(object value)
        {
            //if (Password == value)
            //    return true;
            //else
                return false;
        }
    }
}
